import Vue from 'vue'
import App from './App.vue'
import router from "./router";

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.use(Antd);

//引入axios
import axios from "axios";
import VueAxios from "vue-axios";
axios.defaults.baseURL = process.env.VUE_APP_PUBLIC_PATH;
Vue.use(VueAxios, axios);

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')

// const history = require('connect-history-api-fallback');
// // 在静态页面之前，这一句：app.use('/static', express.static(__dirname + '/public'))之前设置history
// const historyConfig = {
//   index: '/index.html'
// };
// app.use(history(historyConfig));


// 务必在加载 Vue 之后，立即同步设置以下内容
Vue.config.devtools = true
